home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
snip1091.arc
/
UNIX2DOS.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1991-10-04
|
293 b
|
18 lines
/*
** UNIX2DOS.C - Convert Unix-style pathnames to DOS-style
**
** public domain by Bob Stout
*/
#include <stddef.h>
#include <string.h>
char *unix2dos(char *path)
{
char *p;
while (NULL != (p = strchr(path, '/')))
*p = '\\';
return path;
}